changes to HSlider constructor, see #9