fix bug on slider