Karnaugh map: mirroring tables
That depends on where you place your variables in the gray code running along the edges. If you write out the graycode you will see that every square contains the combined graycode from the horizontal and vertical edge (with x_5x_4x_3x_2x_1 in the the right order of course) interpreted as a binary number.