Some gallery apps have the option to hide the folders in the app. In my case, I didn't want to use .nomedia in case that could break the game somehow
I use F-Stop. I just highlight the folders, select the three dots on the top right, then press exclude
I believe the stock Samsung gallery app has the option to hide albums, I can do this by selecting the three dots on the top right, then pressing hide albums