Carousel Implemented with Erros

When the carousel reaches the last slide it disappears.