Floating-gate layer used for the peripheral transistor