The deformation of beams structured by thin walls