Three girls with bathing suit tops and shorts on, one with a hat, are sitting on a large rock beside water at there feet, looking into the sky.
There are three girls sitting by the water are gazing at the sky.
Since they are beside water is is implied they are sitting by the water and looking is a rephrasing of gazing.
(-x)
(-x)