Using a layout to center the slider