Can we arrange the subcategories like this?

how can I add this to the theme in my community.

can someone help?

thanks.