Programs are grouped with the program that launched them. How can I change that?

This morning, I launched Slack from the program list. Once it was up and running, I clicked a link therein, which launched Firefox. In fact, it launched four Firefox windows, each with many tabs, because Firefox remembers my previous session, and I’m disorganized like that. However, in the program switcher (Alt+Tab), the Firefox windows are…

Details