Move <dimension> tag to the right place

It was accidentally put in the wrong place whilst refactoring, I think.