Decomposition of the displacements of thin-walled beams with rectangular cross-section