Damage and cracking in thin mud layers