Thanks for your response.
I actually had an error when I tested this network on an image of 224x224, which after the two max-pooling layers became a 52x52 image. But I fixed it by replacing 10*3*3 with 10*52*52.