Step 1: Reading the image. (Do you need to know about libraries, be mature man).
Step 2: Giving the number of rows and columns if image is like the sample one.
Step 3: Calculating each images height by dividing it in total number of rows and columns as mentioned.
Step 4: Creating folder to save output images.
Step 5: Lastly, cutting all the pieces or dividing images into total pieces as per number of rows and columns mentioned. Hurray, Work done!