add a delay so that we won't keep triggering cb when resize