cache screen width and height variables