An X-ray tomography device for providing a 3D image of a sample comprising an X-ray source, a cell, a photon detector and a processing unit. The processing unit computes the 3D image on the basis of the images corresponding to a plurality of cell angles. The device further comprises a first and a second gratings having a grating period lower than 200 nm, and a microscope between the second grating and the detector.