fix resizing for the case of ?size=<w>