Click a piece of media or shared location in a Messages and hit Space to Quick Look it without opening a separate app. At the top of that Quick View window is a grid icon. Click that, and you’ll see a grid of all the media, locations, and other items shared in that conversation.