bug fix on slider