Use the proper flexslider API when creating a carousel.