resize by narrow side