1. A method to image a partial region of an examination subject in a magnetic resonance system across at least two measurement slices, comprising: positioning an examination subject in a magnetic resonance data acquisition unit, having a field of view, with a partial region of the examination subject, of which a magnetic resonance image is to be obtained, being located at least in part at an edge of said field of view; configuring gradients of gradient fields to be generated by a gradient coil system of the data acquisition unit to cause each voxel in said image, that is located at said edge of said field of view, to be optimized in each of said measurement slices of said partial region, and determining said gradients such that a distortion caused by a non-linearity of said gradient field, and a distortion caused by a basic magnetic field inhomogeneity of a basic magnetic field generated in said magnetic resonance data acquisition unit, cancel at each of said voxels to be optimized at said edge of said field of view; operating said data acquisition unit to acquire magnetic resonance data of said partial region in a multi-slice measurement using said gradients configured for each voxel to be optimized; and reconstructing an image of said partial region from said magnetic resonance data.