rescale mouse coordinates