resize with two axes