An x-ray imaging system comprising an x-ray source, an x-ray detector comprising a plurality of detector strips arranged in a first direction of the x-ray detector, each detector strip further comprising a plurality of detector pixels arranged in a second direction of the x-ray detector a phase grating a plurality of analyzer gratings comprising grating slits a phase grating, and a plurality of analyzer gratings comprising grating slits, wherein the x-ray source and the x-ray detector are adapted to perform a scanning movement in relation to an object in the first direction, in order to scan the object, wherein the analyzer gratings are arranged between the x-ray source and the x-ray detector, wherein each of the plurality of analyzer gratings (162) is arranged in association with a respective detector strip with the grating slits arranged in the second direction and wherein the grating slits of the analyzer gratings of the detector strips are displaced relative to each other in the second direction.