Added feature to work with carousels