implementing the carousel