Dynamics of geometrically nonlinear sliding beams