Rajendra,
Instead of shifting dps once its length becomes 500, you can just keep shifting y-value keeping x-values constant from 1-500. In this case, x-vlaues remains same and the stripLines stay at same values, just y-values keeps updating/shifting.
—
Vishwas R