You would need to create a separate copy of the module for every page. You can create copies in the module manager.
When you try to install the gallery for a particular page the system prompts you to mark menu items.
Each menu item is a category
In Category some materials are placed.
Each page of the material corresponds to a single text and a few photos.
When you define the pages which will be shown gallery, the system determines only the category of materials
I need the gallery to certain photos had been posted on a specific page, not the page group included in a menu item -category