Efficient 3D reconstruction of whole slide images in melanoma