Waits are a bit weird, but they were built in such a way so they don't eat up precious macro lines.

What you're looking for is...

/hotbar display 9 off <wait.25>
/hotbar display 9 on

I just tested this with my own /hotbar macros, and it works. I hope that helps!