I don't believe these 2 functions are working well together.
https://imgur.com/a/1Pti3jA

In the sIde-by-side screenshot:
The left-hand-side has no setOverlay call, while the right-hand-side does.
All the stock items have centerItems set to true.
I've added blue rectangles from css border so you can see the stock items width.
You can see the 'played' box has just 1 card and the is shifted to the right.
When there are many cards like the burnt pile, again it is shifted to the right.
The hand has no setOverlap call and is OK.
https://imgur.com/a/1Pti3jA
In the sIde-by-side screenshot:
The left-hand-side has no setOverlay call, while the right-hand-side does.
All the stock items have centerItems set to true.
I've added blue rectangles from css border so you can see the stock items width.
You can see the 'played' box has just 1 card and the is shifted to the right.
When there are many cards like the burnt pile, again it is shifted to the right.
The hand has no setOverlap call and is OK.