get the value of the slider control