A magnetic resonance imaging apparatus comprises a data acquisition system with motion compensation means for acquiring an image data set in respect of a moving object within an imaging region, the image data set comprising a plurality of acquisitions each in respect of one or more slice planes. Further there are means for averaging, on a slice-by-slice basis, said plurality of acquisitions to generate a single, average image set of said moving object. Also means are provided for calculating the actual scan location of all of said slice planes from all of said acquisitions, means for averaging a selected set of slice planes to generate a single, average image set of a static object within said imaging region. This averaging results in a high image quality in respect of the moving object (12) because for the static object, slice locations change for each acquisition.