fix wrong width bug

Something is changing the width of the original input element, I'm not sure what. This fix stores the width of the original element before anything else happens then uses that value to set the width of the slider.