# Cards in a slider next to each other not spaced out

**URL:** https://community.weweb.io/t/cards-in-a-slider-next-to-each-other-not-spaced-out/14867
**Category:** How do I?
**Created:** [December 7, 2024, 10:33pm UTC](https://community.weweb.io/t/cards-in-a-slider-next-to-each-other-not-spaced-out/14867 "2024-12-07T22:33:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![wealthsyndy](https://avatars.discourse-cdn.com/v4/letter/w/48db29/32.png) [@wealthsyndy](https://community.weweb.io/u/wealthsyndy)
#### Post date: [December 7, 2024, 10:33pm UTC](https://community.weweb.io/t/cards-in-a-slider-next-to-each-other-not-spaced-out/14867/1 "2024-12-07T22:33:25Z")

</div>

I might be going crazy but if I have a slider with a number of “Slides per view” defined as 4, but I only have 2 cards because this is all the back end returned, how do I make them to be next to each other? Right now they are spacing out to fill the slider.

Also to make it responsive, do I need to actually calculate each break point and change dynamically the number of slides?

Thanks!
