added variables for gallery