Dear Sohail,
All you need to do is use one ESIC number, and for the other one, don't put any contribution in it. When you are generating the challan, mark exit for the other ESIC number that you are not using. The leaving date should be the same as the joining date.
I hope this solves your problem.
Regards,
Winston D'Souza