1999 Toyota Camry. 4 cylinder battery light

1999 Toyota CamryIts having trouble starting at times, the battery & oil light are one, it also turns off when stopped or slowing.

I would start with the battery light. This is an indication of the alternator no longer charging the battery. This could give you a weak battery situation and cause difficulty starting. Have the alternator tested and fully charge the battery. Of course I am assuming you have already confirmed the oil level is sufficient.