I think grouping in the taskbar is automatically done for multiple instances of the same application. I think there is no way to group them manually, but I might be wrong.