upadate method to the speed of the sliding control