convert animationDirection to direction

flexslider changes