Fix width when resize or changing orientation mode