screen size check to avoid error in console (rendering before arrange)
