fix bug of slider