trying to get the slider to work