Added better blocks for before and after the open and close animations