Shaving problem :/

i have a problem with shaving my bikini parts, every time i shave i end up with red spots which then turn into little spots under my skin and they are fucking painful. is there a way to get rid off them ? :/