     var alwaysShowImage = false
     
     func set(alwaysShowImage: Bool, animated: Bool) {
+        let scale = collapsedDimension/groupDimension
+        let imageViewScaleDownTransform = CGAffineTransform(scaleX: scale, y: scale)
+        let dotViewScaleUpTransform = CGAffineTransform(scaleX: 1.0/scale, y: 1.0/scale)
         if alwaysShowImage {
             imageView.alpha = 0
-            imageView.transform = CGAffineTransform(scaleX: 0.5, y: 0.5)
-        } else {
+            imageView.transform = imageViewScaleDownTransform
+            dotView.transform = CGAffineTransform.identity
+        } else {
+            dotView.transform = dotViewScaleUpTransform
+            imageView.transform = CGAffineTransform.identity
             imageView.alpha = 1
         }
         let animations = {
             if alwaysShowImage {
                 self.imageView.alpha = 1
                 self.imageView.transform = CGAffineTransform.identity
+                self.dotView.transform = dotViewScaleUpTransform
             } else {
                 self.imageView.alpha = 0
-                self.imageView.transform = CGAffineTransform(scaleX: 0.5, y: 0.5)
+                self.imageView.transform = imageViewScaleDownTransform
+                self.dotView.transform = CGAffineTransform.identity
             }
         }
         if (animated) {

        }
    }
    
    override func layoutSubviews() {
        super.layoutSubviews()
        selectedImageView.frame = bounds
        selectedImageView.layer.cornerRadius = selectedImageView.bounds.size.width * 0.5
        
        imageView.bounds = CGRect(x: 0, y: 0, width: groupDimension, height: groupDimension)
        imageView.center = CGPoint(x: 0.5*bounds.size.width, y: 0.5*bounds.size.height)
        imageView.layer.cornerRadius = imageView.bounds.size.width * 0.5
        
        if countLabel.text != nil {
            imageView.isHidden = true
            dotView.bounds = CGRect(x: 0, y: 0, width: groupDimension, height: groupDimension)

        dotView = UIView()
        super.init(annotation: annotation, reuseIdentifier: reuseIdentifier)
        
        frame = CGRect(x: 0, y: 0, width: dimension, height: dimension)
        
        dotView.layer.borderWidth = 2
