Panes pushed together by hand rarely look good. Press one key and tmux rearranges them.
Ctrl-b Space
Each press moves to the next layout: even-horizontal, even-vertical, main-horizontal, main-vertical and tiled, then it starts over. Keep pressing until the panes sit the way you want them.
The layout only changes how the panes are placed. Programs keep running and nothing is closed or restarted.
If you want a specific layout directly, tmux select-layout tiled picks one by name. The space bar version is for the case where you do not know yet what you want and prefer to look at the options.
Try it without risk: start a throwaway session with tmux new -s scratch, use the shortcut or command above there, look at what changes, and close it again with tmux kill-session -t scratch. Nothing else on your machine is touched.
Further reading: tmux manual page (OpenBSD, official), tmux wiki: Getting Started (official)