Adding gallery to editor