First try changing the settings in your gallery (file location or images to display option), a restart sometime helps the device to detect large number of files moved. You can also try opening some of the images by going to the file location and manually select open with gallery, it helps the device to recognize files whose address have been changed few moments ago.