working on gallery. made it scale with resize but it is slow