Fixed bugs from not setting sliced size, computing shape differences
correctly and copying metadata