Master rythm: no line drum

What would be the best way to do this?
I’d like to be able to show and hide drum on demand.

There’s no way to do that in Dorico, I’m afraid. I would suggest you use a two-line percussion kit, but of course you won’t be able to hide the staff lines.