fixed bug of slider