slider position bug fix