adjust dimensions and meander in only one direction