Is there any way to change the size of an array with multiple axes?