Change to allow the slider width to be constrained by the parent element...

....

With the previous code, the horizontal sliders were sized incorrectly when initialised in a hidden div. I can't see any reason to need to given an explicit width to the horizontal sliders, as they seem to work fine when constrained by the parent element.