fix problems with slider bar