An X-ray tube (260) is provided which is adapted to generate X-ray beams (258). The X-ray tube may comprise electrostatic grids (256) for focal spot deflection in x-direction, wherein the electrostatic grids are mounted on either side of the cathode (250). Further the X-ray tube may comprise electromagnetic coils (260) for focal spot deflection in y-direction, wherein said electromagnetic coils forming a dipole, are mounted external to the X-ray tube and are positioned between the cathode and the target of the anode (206), so that the electron beam (255) passes between its poles. The electrostatic grids and the electromagnetic coils are arranged separately from each other and provide for a combination of electrostatic x-deflection in tandem with electromagnetic z-deflection.