Magnetic relaxation of a horizontal layer: Effect on TEM data