Edited mainCarousel to make swipeable