I change the profile settings, but the gallery display does not change
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.
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.
If you are making a menu item to the gallery, then the profile that is assigned to the gallery will be used.