adding transition to separate groups