Thin out the history trail when it gets long