Re set slides.length in getCarouselWidth