Forward and reverse rearrangements of dislocations in tangled walls