I have just noticed that on my installation of wordpress, within the gallery image pages, the previous/next buttons are browsing through my entire media library rather than just those images that are in the designated gallery.
This means that users are able to scroll through images that are used for other purposes.
Is there a way I can ensure that the browsing is only for those images displayed in the gallery?