I added an option to allow the slider to fit into its container

If I spent more time on it, I'd like to also make it adjust its size when the container/window resizes.