Added loading overlay to gallery modal