fixes to make slider and colorpicker more generically applicable