How to store dynamic elements in a list using python for appium

Hi There,
I have a scenario, where I listed all the elements and counted them. When I tried to iterate each element by clicking each one of them, I noticed that the element ID keeps changing and I am unable to click next element in the list. Please let me know, how to capture dynamic elements using the same XPath. Or is there any other way to do it? Appreciate any suggestion. Thank you.

import utilities.custom_logger as cl
import logging
from base.basepage import BasePage
from utilities.scrolling import Scrolling

class HomeTab(BasePage):

log = cl.customLogger(logging.INFO)

def __init__(self, driver):
    super().__init__(driver)
    self.driver = driver

#Locators
_home_tab = "//XCUIElementTypeButton[@name='Home']"
_pull_to_refresh = "//XCUIElementTypeStaticText[@name='Pull to refresh']"
_number_of_feed = "//XCUIElementTypeCell"


def countAllFeeds(self):
    #single_feed = self.getElement(self._number_of_feed, locatorType="xpath")
    total_feed = self.getElementList(self._number_of_feed, locatorType="xpath")
    print("Total feed", +len(total_feed))
    for num_feed, feed in enumerate(total_feed):
        if num_feed < 0:
            continue
        print("___________________________")
        print("Feed number {0}".format(num_feed), feed)
        time.sleep(5)
        if(feed.is_displayed()):
            print("Element is displayed")
            feed.click()
            time.sleep(2)
            self.elementClick(self._home_tab, locatorType="xpath")
            time.sleep(2)
        else:
            print("Element not displayed")

def hometab(self):
    self.countAllFeeds()