If there's a particular folder than you don't want it to scan inside of, you can just add a file called .nomedia to that directory and the gallery (and some other programs) won't scan it looking for media.
The .nomedia file will apply to the directory it's in and all sub-directories.