Welcome to HCM.
The chlamydial infection is unlikely to cause swelling of your foreskin of the penis. It may either be due to yeast infection or some other infections of foreskin.
A condition called as paraphimosis
secondary to some infection or due to tight foreskin also such swelling can occur.
Consult your Dermato-venereologist and he/she will help you to overcome such problem in future.