modify slider layout