Added first-block and last-block css classes