According to one embodiment, the x-ray apparatus comprises an x-ray source adapted to emit an x-ray beam, a detector adapted to receive the x-ray beam of the x-ray source, wherein the x-ray source is adapted to be moved in relation to a first portion of the x-ray apparatus, wherein the detector is adapted to be moved in relation to a first portion of the x-ray apparatus, the x-ray apparatus further comprising a control unit for controlling the movement of the x-ray source and detector, wherein the x-ray source and the detector are adapted to rotate in relation to a first portion of the x-ray apparatus, wherein further the x-ray beam is directed essentially towards the detector during the movement of the x-ray source and the detector.