Add slicing functionality

Add the method slice_image in
order to partitionate the image
in diferent regions and find the
gap-valley separatedly