Make the slider work