According to one embodiment, the x-ray apparatus includes an x-ray source adapted to emit an x-ray beam and a detector adapted to receive the x-ray beam of the x-ray source. The x-ray source is adapted to be moved in relation to a first portion of the x-ray apparatus and the detector is adapted to be moved in relation to a first portion of the x-ray apparatus. A control unit controls the movement of the x-ray source and detector. The x-ray source and the detector are adapted to rotate in relation to a first portion of the x-ray apparatus. Further, the x-ray beam is directed essentially towards the detector during the movement of the x-ray source and the detector.