Collect columns and group them to categories