You always need a support for toothbrushes :)
Print vertically, with supports.
You also need to print 2 screws.
The two screws allow to fix it to a shelf up to 19mm thick.
Enjoy, and feel free to comment and modify.