A helper for bootstrap carousel.