Both gram-positive and gram-negative bacteria commonly have a surface layer called an S-layer .
On the other hand , gram-negative bacteria have thin , insignificant peptidoglycan layers , so they do need rigid cell walls for support and protection .