getting larger value for screen dimensions