Well, considering you have the 'Hide Party' function already, wouldn't hurt to hide the raid trough the same simple line (I tried that before asking, just in case but didn't work).
For party and raids I use grid.
It's more than enough to play properly (at least as I'm used to it).
These few lines added to the layout hides the frame perfectly.
If it can be done with a single line even better