Here is a clever drone that uses a passive folding mechanism to reduce its size and fit through narrow gaps. UC Berkeley’s Morphing Drone has its rigid connections between the arms and body replaced by sprung hinges. When low thrust forces are produced by the propellers, the arms fold down, resulting in the size of the drone reducing by 50%.
The above video shows how this morphing quadcopter works.
[Source]