Source code of gallery