How To Fix Samsung Galaxy S5 Albums Disappearing From Gallery Problem
Download a file manager app from Play Store and inside the folders that contained photos, find a file called “.nomedia” .nomedia file forces the system to ignore the folder when looking for images to display in the Gallery.
For those who could not find the .nomedia files, go to App Manager > Gallery > Force Stop, and then Clear Cache/Clear Data. Now open Gallery again, and wait a few seconds for the database to reload.
Connect your phone to the PC with USB cable and when you find the .nomedia file, delete it. Check again and you will find all your photos back.
Watch the Video Below for More Info