rework slider initialization