This is because the center of the second dimension is not the same as the one in the first dimension.
I am really confused about what you’re trying to do. I think an example of input/output that you want would help.