Correct sidebar photo display.
Only the photos of the current page are now displayed in the sidebar.