Access next model on Listview

I want to create a vertical timeline with the following organization:

JULY 2016

item 1

item 2

MAY 2016

item 3


item 4

item 5

The problem is that I need to know if the next element is on other month to add the "MONTH YEAR" information, there are any way to access the next model in the iteration or the previous one in a ListView?

If you have other solution please share.