# CMS Slider with drawings with different ratios

**URL:** <https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877>\
**Category:** Attributes\
**Tags:** cmsslider\
**Created:** [May 22, 2025, 3:06pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877 "2025-05-22T15:06:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinwid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/tinwid/32/846_2.png) [@tinwid](https://forum.finsweet.com/u/tinwid)\
**Post date:** [May 22, 2025, 3:06pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/1 "2025-05-22T15:06:53Z")

</div>

Hi all,

I’m implementing a new CMS slider into a project for a client. Sometimes, depending on the collection, I may have projects with different aspect ratios. I’ve got a small bit of code that depending on the width and height of the image applies ratio classes 3-2 or 2-3. Once those images are put into the slider, the landscape ones go to the top part of the slider whilst the portrait ones fill it out. Is there a way to control that? Ideally, I would like the landscape ones to be centered.

Thanks a lot,  
Adam

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 22, 2025, 4:42pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/2 "2025-05-22T16:42:31Z")

</div>

hey @tinwid! Can you please share a read-only link? I’ll take a look!

---

<div class="post-metadata">

**Author:** ![tinwid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/tinwid/32/846_2.png) [@tinwid](https://forum.finsweet.com/u/tinwid)\
**Post date:** [May 22, 2025, 5:19pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/3 "2025-05-22T17:19:20Z")

</div>

Hi Luis! Thanks a lot - please see the read-only link:

> **[Webflow - Ian Chalk Architects](https://preview.webflow.com/preview/ian-chalk-architects?utm_medium=preview_link&utm_source=designer&utm_content=ian-chalk-architects&preview=e8b56bb9cd8377b4ab35fcd44da518bd&pageId=67e587ce7e41613d80139766&itemId=67e58ad0ea4af5714f5a87fe&workflow=preview)**

You’ll be able to see bits of the code I mentioned in the before tag but I removed the classes from the corresponding images at the moment, apart from ‘photo\_internal’. I hope you manage to find a solution, thanks a lot in advance.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [May 23, 2025, 12:52pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/4 "2025-05-23T12:52:44Z")

</div>

Hey @tinwid!

Could you please add the classes to the images so I can see the wrong functionality? Also, on which instance is this happening on?

I see there are around 13 `fs-list-instance` instances on the page 🤔

---

<div class="post-metadata">

**Author:** ![tinwid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/tinwid/32/846_2.png) [@tinwid](https://forum.finsweet.com/u/tinwid)\
**Post date:** [May 28, 2025, 6:44pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/5 "2025-05-28T18:44:17Z")

</div>

Hi Luis,

Apologies for a delayed reply!

The instance in question in the link is called ‘internal’. The image class in that instance is called ‘photo\_internal’. As you can see in that CMS slider, the portrait photo is displayed great, whereas the landscape ones are put towards the top of the slider. Let me know if there’s a way to control the position of the slides.

I’ve got a number of instances as the projects will be organised through a number of CMS sliders, showing existing photos, drawings, sketches and finished photography. I hope that makes sense!

Let me know if you need anything else to investigate.

A

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [June 7, 2025, 8:34pm UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/6 "2025-06-07T20:34:42Z")

</div>

Hello @tinwid! Apologies for the delay on my end!

Could you please try adding the `align-content: center` property to the slide?

 ![Screenshot 2025-06-07 at 22.34.01](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/f/fed44b9ff99bc18c58196d84165607da85273bb3.jpeg)

---

<div class="post-metadata">

**Author:** ![tinwid](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/tinwid/32/846_2.png) [@tinwid](https://forum.finsweet.com/u/tinwid)\
**Post date:** [June 10, 2025, 9:21am UTC](https://forum.finsweet.com/t/cms-slider-with-drawings-with-different-ratios/4877/7 "2025-06-10T09:21:06Z")

</div>

Works wonders! Thanks a lot for looking into this, Luis
