correct slider position