Changes the speed of rotation when the speed slider is changed