Hi Mitali,
One solution would be to store the createdDate of the object.
For the previous object: sort the list based on createdDate descending and use the xpath [createdDate < $currentObject/createdDate].
For the next object: sort the list on createdDate ascending and use the xpath [createdDate > $currentObject/createdDate].
I hope this helps. Good luck!
Kind regards,
Esther