Well those are automatically done by google, when you have lots of content in your website which is crawled by google. Than google structure them that way.
So make sure you are using google webmaster tools to submit your sitemap and doing basic SEO on your website.