A sliding blocks estimator for the extremal index