reset screen offset of top line if it exceeds the number of screens