Alright, let me be the first one to say. Nice screen, looks awesome!
Now, setting that aside, that is a little bit more complex than I actually expected . . . You would have to build a somewhat complex gallery to make that work if I'm not mistaken . . . First thing, you would have to set a wrap, in order to set either the columns or the rows of the gallery, and then go on from there . . . The thing with the setup you have, is that it's really not as simple as just buttons ordered like that . . . And the template size is the size of each "row" of the gallery, which is why having it set to 1 is somewhat wrong, altough it can work to your advantage . . . The fact that you have it at 1, is what causes that pixel deviation, since for each "row" on the gallery it is being displaced 1 pixel . . . Setting it to 0 might or might not solve your pobelm there, but I'm not sure . . .
One thing you can try, which you might've already did, is just set the x and y to -1 pixel for earch of the items that are displaced . . . That might help but once again, I'm not sure . . .
The correct way to make this, in my opinion, would be using nested galleries, in which you have a parent gallery, that holds the menus, and within that gallery, a child gallery that would hold all items within each specific menu, if that makes sense . . . That is how I would do it, and I've done it a few times, altough it's not something simple to make work properly, but if you have the experiencie, I'm sure you'll figure it out . . .
Hopefully any of what I stated can help you out with this, if that's the case, feel free to mark this reply as an answer, otherwise feel free as well to reply for further help on this!