demo gallery2, keep global references for testing
demo: gallery2 refacto, getting data from a ƒ
fix on __end()