moving boxes adjust orientation