grid : pass width and height as arguments to the resize method