fix page gallery text on empty galleries