trying to get slider to work