You can create .nomedia file.
A .nomedia file is a blank file without file extension, placed inside a folder.
When the media scanner detects the .nomedia file, the media scanner does not scan that folder so the images in that folder don't appear in the Gallery app.