         }
 
         currLoadingLayer.position = currImageView.frame.center
+    }
+
+    override func didMoveToWindow() {
+        super.didMoveToWindow()
+
+        if window != nil {
+            currLoadingLayer.startAnimating()
+        }
     }
 
     @objc

        imagesContainer.addSubview(currImageView)
        imagesContainer.addSubview(nextImageView)

        currLoadingLayer.zPosition = 1
        currLoadingLayer.startAnimating()

        prevImageView.layer.zPosition = 2
        currImageView.layer.zPosition = 2


    override func layoutSubviews() {
        super.layoutSubviews()

        let imageWidth = frame.width - 2 * Size.insets - 2 * Size.lilBits
        let imageHeight = frame.height - 2 * Size.insets
