Resistive layers formation during the superconductor-normal transition of high-Tc superconductors