Add correct axes shape for automatic slicing