add get_value method for slider