Is there any danger slicing pickles hours before frying them?
No, there is no danger.

Just slice the pickles then put them back in the jar or alternatively wrap them in foil and place them back in the refrigerator until you need them.