added gamma gallery functionality