Numerical simulation of the formation of thin ionization layers at high latitudes