The w3-bar class groups items in a horizontal bar.
Add w3-bar-item to each button to arrange them side by side without spaces between them.