updates slider script