fixed slider initialization bug