Flow and particle manipulation across flow regimes via shape modulation