realtime uniqueness check on gallery