A note on inhomogeneous deformations of nonlinear elastic layers