Hello,
Thank you for contacting us.
The gallery doesn’t work properly because of two reasons:
1. You don’t need to add a featured image to the product gallery also
2. You have broken its functionality with this code snippet, please remove it https://gyazo.com/71edaa956dc3fedd09f4b472d18f619f
Regards















