Refactor by using a layout for portfolio items