I have a Confluence page where I've placed a table of contents. Having it as a list doesn't make the best use of space and I'd like it to look a little more like this: 
Although I've searched videos/support pages/documentation, I can't see that there is a function to do this. Am I missing something, or is this feature just not available?
I'm very new to Atlassian and its products, so I'm hoping someone on here can shed some light.
Thanks in advance