ajax call working using ujs and found out that flexslider options where causing images to be repeated