Dynamic problems of rate-and-state friction in viscoelasticity