Carousel code amended