adding scrollToCurrentPhoto method