Construction of a one-parameter family of isospectral potential to study resonances in weakly bound halo nuclei