Vibrations of an infinite viscoelastic layer with a dissipative memory