Took me some minutes to figure it out, but it's actually very simple: That small piece with 4 chocolate parts that replaces the bigger one get extra length added (or bigger piece gets some taken or both) when it's inserted.
You can figure it out by comparing the left side length of both pieces. The smaller one also should have a smaller left side.
No magic