Liberation on the walls in gauge theories and anti-ferromagnets