Add divider functionality to the list item component