initialize pg gallery