This is a bit of a non-answer, but the only way is to put them in a nested block. But that would totally defeat the purpose of the properties
The other way is to display a table, but that also has drawbacks.
I do wish collapsing blocks would hide their properties as well though. And not just for tasks.