Changing window size so it doesn't flicker on resize for target devices