add animation to slider