make pooling support rectangle shape