     }
 
     private func setupScrollView() {
-        scrollView = UIScrollView(frame: bounds)
+        var frame = bounds
+        frame.origin.x -= Constants.leadingMargin
+        frame.size.width += Constants.leadingMargin * 2
+
+        scrollView = UIScrollView(frame: frame)
         scrollView.clipsToBounds = false
         scrollView.isUserInteractionEnabled = true
         scrollView.isPagingEnabled = true

        scrollView.showsHorizontalScrollIndicator = false
        addSubview(scrollView)

        scrollView.setFullScreenConstraints()
    }

    private func updateViewWithImages(_ newImages: [MediaViewerImageModel], selectedImage: MediaViewerImageModel) {
        for (index, image) in newImages.enumerated() {
            let contentView = contentViewWithImageModel(image, frame: contentViewFrame(index: index))
            contentViews.append(contentView)
        }


        if let index = images.firstIndex(where: { (some) -> Bool in
            return some === selectedImage
        }) {
            scrollView.contentOffset = contentViewOffset(index: index)
            currentPage = index
            if let delegate = mediaViewerDelegate {
                hiddenImageView = delegate.imageViewForImage(images[index])
