Fixing resizing selection in firefox