changing layout based on array position for projects