Slider issue, grey box instead of skipping a slide

hi everyone!!
I have a problem appearing on slides,

I’ve build a product detail page with slider to display product pictures, only some products have 3 pictures in total while others would have 10. So I applied conditional formatting set to display a slide when the picture is set.

The problem is that instead of hiding some slides it just moves existing (the ones that are enabled) out of place and then for some reason shows a gray block…

here’s the link to the project as well as some live examples so you can get a better idea

thank you for your time, hope someone can help me fix it :slight_smile: