A group of people and a dog sitting on the steps.
A group of people are sitting with a dog.
The word, and, implies that the people are with the dog
Group of people and a dog are a group of people with a dog.
This group of people is sitting on the steps with the dog.