Product image fall behind if you click through variants

Keep in mind this is only on the product page in mobile.

So what is supposed to happen is that when you click on a variant the corresponding image is supposed to show up. This does happen for the first 2 images, before it starts falling behind.

I really hope I am explaining it well enough, but Im not sure how to show it. If there’s any questions please let me know