Updated slider

Made the label size dynamic, not static. This makes sure the slider
itself exists for small width slider.
Merge pull request #588 from robotboy655/slider

Updated slider