An electronic device (101, 200), comprising: a housing; a display (160, 241) positioned in the housing and exposed through a portion of the housing; a slide portion comprising an opening exposed to an outside of the electronic device and configured to slide with respect to the housing; a camera module unit disposed at the opening, configured to rotate within the opening, and to rotate in association with an operation of the slide portion, the camera module comprising a pinion gear formed along a rotation axis of the camera module unit; and a sliding motion controller configured to implement a slide operation of the slide portion and a rotation operation of the camera module unit, wherein the sliding motion controller comprises: a sliding plate coupled to the slide portion to slide together with the slide portion; a rack gear rail disposed in a sliding direction of the slide portion and configured to move together with the slide portion by a first length and having a gear formed at a first end thereof, the gear of the rack gear rail being configured to engage with the pinion gear; a locking hook protruding from a second end of the rack gear rail so as to intersect a sliding direction of the rack gear rail; and a locking guide formed to correspond to a position of the locking hook and coupled to the locking hook, wherein the slide portion further comprises: a first state in which the camera module unit is positioned to overlap with the display; a second state from movement by a first length in a first direction toward an arbitrary edge of the display in the first state; and a third state from movement by a second length in the first direction in the second state, wherein in the sliding plate, a first guide slit comprising a first section formed diagonally in a width direction of the rack gear rail and a second section formed in a longitudinal direction of the rack gear rail is formed, wherein at the second end of the rack gear rail, a second guide slit is formed in a width direction of the rack gear rail, and wherein in the locking hook, a first protrusion inserted into the first guide slit and the second guide slit to move is formed. a housing; a display (160, 241) positioned in the housing and exposed through a portion of the housing; a slide portion comprising an opening exposed to an outside of the electronic device and configured to slide with respect to the housing; a camera module unit disposed at the opening, configured to rotate within the opening, and to rotate in association with an operation of the slide portion, the camera module comprising a pinion gear formed along a rotation axis of the camera module unit; and a sliding motion controller configured to implement a slide operation of the slide portion and a rotation operation of the camera module unit, wherein the sliding motion controller comprises: a sliding plate coupled to the slide portion to slide together with the slide portion; a rack gear rail disposed in a sliding direction of the slide portion and configured to move together with the slide portion by a first length and having a gear formed at a first end thereof, the gear of the rack gear rail being configured to engage with the pinion gear; a locking hook protruding from a second end of the rack gear rail so as to intersect a sliding direction of the rack gear rail; and a locking guide formed to correspond to a position of the locking hook and coupled to the locking hook, a sliding plate coupled to the slide portion to slide together with the slide portion; a rack gear rail disposed in a sliding direction of the slide portion and configured to move together with the slide portion by a first length and having a gear formed at a first end thereof, the gear of the rack gear rail being configured to engage with the pinion gear; a locking hook protruding from a second end of the rack gear rail so as to intersect a sliding direction of the rack gear rail; and a locking guide formed to correspond to a position of the locking hook and coupled to the locking hook, wherein the slide portion further comprises: a first state in which the camera module unit is positioned to overlap with the display; a second state from movement by a first length in a first direction toward an arbitrary edge of the display in the first state; and a third state from movement by a second length in the first direction in the second state, a first state in which the camera module unit is positioned to overlap with the display; a second state from movement by a first length in a first direction toward an arbitrary edge of the display in the first state; and a third state from movement by a second length in the first direction in the second state, wherein in the sliding plate, a first guide slit comprising a first section formed diagonally in a width direction of the rack gear rail and a second section formed in a longitudinal direction of the rack gear rail is formed, wherein at the second end of the rack gear rail, a second guide slit is formed in a width direction of the rack gear rail, and wherein in the locking hook, a first protrusion inserted into the first guide slit and the second guide slit to move is formed.