better cursor resizing