diff --git a/frontend/src/components/pages/details/components/DetailsTrekFamilyCarousel/DetailsTrekFamilyCarousel.tsx b/frontend/src/components/pages/details/components/DetailsTrekFamilyCarousel/DetailsTrekFamilyCarousel.tsx index 8d201bca3..6f69efd2f 100644 --- a/frontend/src/components/pages/details/components/DetailsTrekFamilyCarousel/DetailsTrekFamilyCarousel.tsx +++ b/frontend/src/components/pages/details/components/DetailsTrekFamilyCarousel/DetailsTrekFamilyCarousel.tsx @@ -25,7 +25,7 @@ export const DetailsTrekFamilyCarousel: React.FC prevArrow={} nextArrow={} swipe={false} - slidesToShow={3} + slidesToShow={trekChildren.length > 2 ? 3 : 2} slidesToScroll={2} initialSlide={initialSlideId} className="my-1.5 !flex items-center desktop:my-3"