Fixed bug for splitting along z-direction; check for small subdomains