change pointer position to percentage