update card height after transition is done