Creating collapsed styles for each list item in the collapsed templates.