swap top/bottom arguments in rect