get relative coordinates
onclick move method