An X-ray differential phase contrast imaging device, comprising: an X-ray source for generating an X-ray beam; a source grating for generating a coherent X-ray beam from a non-coherent X-ray source; a collimator comprising slits for splitting the coherent X-ray beam into a plurality of fan-shaped X-ray beams for passing through an object; a phase grating for generating an interference pattern and an absorber grating for generating a Moiré pattern from the interference pattern arranged after the object; a line detector comprising detector lines for detecting the Moiré pattern generated by the phase grating and the absorber grating from the fan-shaped X-ray beams passing through the object; wherein the X-ray source, source grating, collimator, phase grating, absorber grating and line detector are fixed to a common gantry and are movable with respect to the object, such that a number of interference patterns from different positions of the gantry are detectable for reconstructing a differential phase image of the object; wherein at least one grating (G0, G1, G2) of the source grating, the phase grating and the absorber grating comprises groups of grating lines and transparent areas between the groups of grating lines, wherein the groups of grating lines and the transparent areas alternate with respect to each other in a direction perpendicular to the direction of the detector lines; and the grating is movable with respect to the gantry, such that in a first position of the source grating the X-ray beams pass through the grating lines and subsequently pass through the slits of the collimator and in a second position of the source grating the X-ray beams pass through the transparent areas and subsequently pass through the slits of the collimator, or in a first position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the grating lines, and in a second position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the transparent areas. an X-ray source for generating an X-ray beam; a source grating for generating a coherent X-ray beam from a non-coherent X-ray source; a collimator comprising slits for splitting the coherent X-ray beam into a plurality of fan-shaped X-ray beams for passing through an object; a phase grating for generating an interference pattern and an absorber grating for generating a Moiré pattern from the interference pattern arranged after the object; a line detector comprising detector lines for detecting the Moiré pattern generated by the phase grating and the absorber grating from the fan-shaped X-ray beams passing through the object; wherein the X-ray source, source grating, collimator, phase grating, absorber grating and line detector are fixed to a common gantry and are movable with respect to the object, such that a number of interference patterns from different positions of the gantry are detectable for reconstructing a differential phase image of the object; wherein at least one grating (G0, G1, G2) of the source grating, the phase grating and the absorber grating comprises groups of grating lines and transparent areas between the groups of grating lines, wherein the groups of grating lines and the transparent areas alternate with respect to each other in a direction perpendicular to the direction of the detector lines; and the grating is movable with respect to the gantry, such that in a first position of the source grating the X-ray beams pass through the grating lines and subsequently pass through the slits of the collimator and in a second position of the source grating the X-ray beams pass through the transparent areas and subsequently pass through the slits of the collimator, or in a first position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the grating lines, and in a second position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the transparent areas. a line detector comprising detector lines for detecting the Moiré pattern generated by the phase grating and the absorber grating from the fan-shaped X-ray beams passing through the object; wherein the X-ray source, source grating, collimator, phase grating, absorber grating and line detector are fixed to a common gantry and are movable with respect to the object, such that a number of interference patterns from different positions of the gantry are detectable for reconstructing a differential phase image of the object; wherein at least one grating (G0, G1, G2) of the source grating, the phase grating and the absorber grating comprises groups of grating lines and transparent areas between the groups of grating lines, wherein the groups of grating lines and the transparent areas alternate with respect to each other in a direction perpendicular to the direction of the detector lines; and the grating is movable with respect to the gantry, such that in a first position of the source grating the X-ray beams pass through the grating lines and subsequently pass through the slits of the collimator and in a second position of the source grating the X-ray beams pass through the transparent areas and subsequently pass through the slits of the collimator, or in a first position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the grating lines, and in a second position at least one of the phase grating or the absorber grating the fan-shaped X-ray beams pass through the transparent areas.