include gallery ids in media