Added animate option to slider