If you are talking about the slider gallery as from here.
https://support.wix.com/en/article/adding-a-slider-gallery-in-wix-stores
Then check within the settings itself if there is a option to turn the link to the product page on or off.
However, this might be an automatic setting from within the Wix Stores app own slider gallery and you might not be able to change this built in setting.
As this slider gallery is built specifically for the Wix Stores, you will be better suited going through Wix Support for more info about it.
https://support.wix.com/en/about-wix/contacting-wix-support
If it can’t be turned off or it can’t be integrated with code, then you will have to look at simply making your own gallery or repeater and adding your own code to it.
Although one would have to question why you are using the Wix Stores own slider gallery if you don’t want users to click on the selected product and go to it’s own page, as that is what it is designed for.