added delay to before next resize