moved the slider out of the layout container