resizing the canvas