On distance preserving and sequentially distance preserving graphs