fixed bug in slider