Mounting the scanning elements in a collapsible or foldable structure