             let middleView = icons[middleIndex].1
             
             layoutConstraints.append(NSLayoutConstraint(item: middleView, attribute: NSLayoutAttribute.centerY, relatedBy: .equal, toItem: contentView, attribute: .centerY, multiplier: 1, constant: avatarYoffset))
-            layoutConstraints.append(NSLayoutConstraint(item: middleView, attribute: NSLayoutAttribute.centerX, relatedBy: .equal, toItem: contentView, attribute: .centerX, multiplier: 1, constant: needsToAdjust ? realContractedCenterOffset : 1))
             layoutConstraints.append(NSLayoutConstraint(item: middleView, attribute: .width, relatedBy: .equal, toItem: contentView, attribute: .height, multiplier: 0.6, constant: 0))
             layoutConstraints.append(NSLayoutConstraint(item: middleView, attribute: .height, relatedBy: .equal, toItem: contentView, attribute: .height, multiplier: 0.6, constant: 0))
+
+            self.middleItemSpacingConstraint = NSLayoutConstraint(item: middleView, attribute: NSLayoutAttribute.centerX, relatedBy: .equal, toItem: contentView, attribute: .centerX, multiplier: 1, constant: needsToAdjust ? realContractedCenterOffset : 1)
+            layoutConstraints.append(self.middleItemSpacingConstraint!)
         }
             
         else {

    fileprivate var contentView: UIView
    fileprivate var isSetupFinished: Bool = false
    open var isExpanded: Bool = false
    fileprivate var rightMiddleItemSpacingConstraint: NSLayoutConstraint!
    fileprivate var leftMiddleItemSpacingConstraint: NSLayoutConstraint!
    fileprivate var rightItemSpacingConstraints: [NSLayoutConstraint] = []
    fileprivate var leftItemSpacingConstraints: [NSLayoutConstraint] = []
    
    open var imageSpacing: CGFloat = 4.0
    open var onExpanded: (()->())?
    open var onCollapsed:(()->())?

        var tag = views.count - 1
        
        // Add the participantViews
        // Reverse the array of incoming participants so that the User is the last one added (is on top)
        for (label, image) in views.reversed() {
            image.frame = CGRect(x: 0, y: 0, width: imageWidth*0.5, height: imageWidth*0.5)
            image.tag = tag
            if tag > 9 { image.alpha = 0.0 } // if there are more than 10 participants, make the 11th - Nth participant invisible for now
            self.icons.append((label, image))
            contentView.addSubview(image)
            tag -= 1
