getting slider to return a value