getValue() method is added to Slider component