implement 2 layers gallery