fixed persitence bug in the slider