Damping of beams. Optimal distribution of cuts in the viscoelastic constrained layer