add SectionFromPost_Gallery(), fix empty galleries