If you have a large amount of media all of the thumbnails need to be generated. Have you allowed this to happen?
Once the thumbnails have been generated the browsing should be much faster.
Also you have NOT stated what your system specs and the spec's of your database, people count, marriages, media count and over all size of database.
All of the above will influence the performance.