A process that is carried out at the cellular level which results in the assembly, arrangement of constituent parts, or disassembly of an S-layer enveloping the cell. The S-layer is a crystalline protein layer surrounding some bacteria.