I can't overlay components on top of each other

I have been trying to do something like the picture below, where the component appears over the rest of the app, used the floating component extension and the animation utility but nothing seem to work properly. there must be an easier way tp do such an essential function that exists in every app.

also how can I make that white line between each Horizontal arrangement?