One woman taking a picture of a second woman as she leans on a table.
Women taking pictures of each other.
Taking a picture is part of the process of taking pictures.
One woman taking a picture of a second woman are women.
The subjects and objects of the sentence are stated differently, but in each we have a set of women who are taking pictures. Each woman together comprises women, and their actions affect each other.