Yes, you need approximately 20-30 sword cavalry, either charge them in from the side or from behind. They will clean up the slingers very quickly and the Ptolemies army will be distracted.
Alternatively, sometimes you can force skiritai through enemy pikes, although that requires quite a lot of micro and if the ptolemies player has many pikes then it will be very difficult.