added the gallery variable