After closing out a character’s profile, the panel returns to your own profile (This just might be the default). It might make a better UX flow to have the panel collapse.
As it is currently, every time you look at someone and close their profile, you then have to manually collapse the panel.
A good solution might be to remember whether the panel was open prior to looking at someone, and then collapse it again once the profile is closed.