As @alexpereira suggested, changes need to be made to the events page so that the photos data is fetched once. Here is the comment by Alex for reference:
You can update the initial query to fetch all the data once, instead of making all of these secondary requests:
As @alexpereira suggested, changes need to be made to the events page so that the photos data is fetched once. Here is the comment by Alex for reference: