refining the slider to prevent scroll bars and hide caption details at smaller sizes