checking screen dimensions