Grid layer: set and update SVG size properly

The SVG has to be as big as the stack's view.