Add minimal size handling for slider.