rotate and resize