Images not visible from Media Library

No media are showing under Media library when preview in grid mode. If switching to list mode all media files appear again.