fix slider position bug