CMS slider adjustment

Hello ,
I’m trying to figure how to make a CMS collection slider , thats shows the item images,
right know - when i make a slider - and make each slide woth a condition thats shows only if the image is set . What happens is that if there is’nt and image the slide stil showing but with gray background …

I’m trying to do exactly what Pablo did in this template with the slider :

http://lux-cms.webflow.io/layout-1

some items has 5 images , some has 8 - but the slider is perfect and adujst to the number of pics …

Thnks everyone !


Here is my site Read-Only: https://preview.webflow.com/preview/to-new-b81653c09b5b0fadbbc6ee6e?utm_source=to-new-b81653c09b5b0fadbbc6ee6e&preview=f218ae34a31f9d9ff84a786de9c7d90e
(how to share your site Read-Only link)

You can’t do this without custom code. @samliew care to share how you did it for me?