Lanka need another 246 runs to avoid the follow-on with former skipper Angelo Mathews batting on 54.