update slider js