adding margins to items

added margins between items had to refactor the smooth transitions as a
result of the margins