Set max grid lines to draw in fixed-gap to avoid occasional ANR