Relaxation of a viscoelastic gel bar: I. theory