layout and slider work