getting slider to work