FlexSlider function.