avoid n+1 queries in category index
make categories collapsible