         self.addSubview(label)
 
         faveLabel = label
+    }
+    
+    override func layoutSubviews() {
+        super.layoutSubviews()
+        var margin:CGFloat = 50.0
+        if caption.text == nil {
+            margin = 0
+        }
+        
+        self.animatedView.frame = CGRectMake(0, 0, self.bounds.width, self.bounds.height - margin)
     }
 
 

    }

    func addAnimatedImage() {
        var margin:CGFloat = 50.0
        if caption.text == nil {
            margin = 0
        }
        self.animatedView = FLAnimatedImageView(frame: CGRectMake(0, 0, self.bounds.width, self.bounds.height - margin))
        self.animatedView.contentMode = .ScaleAspectFit
        self.addSubview(animatedView)
    }

    }

    func addCaption() {
        self.caption = UILabel(frame: CGRectMake(0, self.bounds.height-50, self.bounds.width, 45))
        caption.textAlignment = NSTextAlignment.Center
        caption.numberOfLines = 0
        caption.lineBreakMode = NSLineBreakMode.ByWordWrapping
