A hand operated endoscope for medical purposes, the endoscope including a separate, modular unit consisting of a camera system with an associate lens system, light source and a transmission system. The electro-mechanical device features permanent magnets placed in a magnetically attracting manner and inter-dispersed between control coils. The sliding module includes a guide member mounted on a surface of the first housing, at least one guide hole extending in a longitudinal direction of the guide member, and a slide member extending through the guide member via the guide hole to be mounted on the second housing, the slide member moving along the guide hole and supporting a sliding movement of the second housing.