switch two paragraphs for irregular x-wrapping and y-wrapping