Check if the newsitem is the last element and then add a class.