Changing getCarouselWidth to have auto width