Known issue in CB Profile Gallery. Plugin is planned to be rewritten after CB 2.0. I don't have a quickfix in the mean time aside from deleting the gallery entry and re-creating it or ensuring there is enough page space for the popup to open to the right.