Added some functionality for captions for carousel.