On the dynamics of viscous masonry beams