add layout transition for the collection view