Slider using flexslider in front-end and custom code in the back-end