improve rotation handling. fix rotation collection view layout bugs. ref: #36. fix #232.