How do I change my thoughts on death?

Sometimes I think of when my parents will die. I think to myself, how I will deal with it when it happens? I think to myself, I don’t want to deal with the pain or sadness and would rather die before them so I don’t have to deal with it. But then think to myself that that can’t happen cause then they would have to deal with the pain of me dying. Sometimes life is hard and not fair.

Sorry if I bring any sadness or emotions from this.