An apparatus (1) for treating a body part (5) of a patient (3) is provided. The apparatus comprises a support (7) for at least partially supporting and holding the body part, a manipulator (11) connected to the support for supporting and manoeuvring the support and a controller. The apparatus is configured to determine the spatial position and orientation of the first and second portions relative to each other, to determine, based on that, a first manoeuvring sequence of the body part, and to control the apparatus (1) to operate the manipulator (11) to manoeuvre the support (7) in such a way that the body part, when appropriately positioned on, and possibly held by, the support, is manoeuvred according to at least the first manoeuvring sequence. Further, a method and a storage medium are provided.