added improved gallery version