setting offset of mouse pointer