Working with pooling layers