it might be worth having this constructor as public to enable dynamic instantiation of sliders