Arranging hidden/visible select components

I'm trying to figure out how to arrange the following select components so that they appear next to one another. Whenever I show a select component it seems to appear below. I am looking to have a similar result to flexbox, but I can't seem to figure it out and the documentation doesn't necessarily have answers for this. Any ideas? Image attached.

Hello! Could you explain what you mean by "whenever you show a selected component it seems to appear below?" Are you hiding/revealing these components somehow?