fixing screen auto dimensions