Updated the carousel code