If you are using the gallery module to display a gallery, then the profile is set when you enter the module settings. Please go to the gallery module settings, and check which profile is active for the gallery. Then check you are editing the correct profile.

module choose profile.jpg

If you are using the gallery plugin to display a gallery in a Joomla article, then the profile is set when you choose the plugin settings and insert the gallery into the article. If the article code has pid=1 in it, then the profile with an id of 1 is being used. Please check you are editing the correct profile.

plugin choose profile.jpg

If you are making a menu item to the gallery, then the profile that is assigned to the gallery will be used.

menu choose profile.jpg