js slider fix