Since stacks are meant for vertical components (can’t remember if horizontal stacks are somethin in the work). In this case, grouping the buttons in a container and using a grid would be a better option for horizontal positioning.
This thread had a similar question. https://www.editorxcommunity.com/forum/general-discussions/how-to-make-side-by-side-buttons