when resizing take window size -20px