Rewrote gallery