Multiple variant images and hide variant images that aren't selected

Hi there!

I am trying to create a sliding image gallery that has colour variants. When a colour has been selected, I would like to only show the images corresponding to that variant and hide the rest of the images.

I have tried to follow https://www.youtube.com/watch?v=ARpSIscriYA tutorial. However, it seems that it is not compatible with the Dawn theme. I have also tried an app called “Free Variant Images” but it seems to be conflicting with my image slider.

I would be very grateful for any insight into this issue.

https://heita-contemporary-wood.myshopify.com/products/imatra-2?variant=42373674762482

password: heita