Added helper getPreviousNext allowing to get prev/next of a specific item