Pedestrians are gazing at a display of books set out on a sidewalk under a tree.
People are standing on a sidewalk.
People do not need to be standing on a sidewalk in order to gaze at a display of books.
People can be gazing at the display of books from places other than on the sidewalk.
You can be on a sidewalk and not be standing.