1. An information processing apparatus that has a touch-sensitive panel for processing a gesture input performed via the touch-sensitive panel, the information processing apparatus comprising: an acceptance unit configured to accept an instruction from a user for transitioning from a first processing state to a second processing state; a setting unit configured to set a number of operations in accordance with the instruction accepted by the acceptance unit; a replication unit configured to generate replicated images of an object in a number equivalent to the number of operations set by the setting unit and to replace an original image of the object with the replicated images; and a processing unit configured to execute, after transitioning from the first processing state to the second processing state, processing on the replicated images in accordance with a gesture input, and to execute, if the replicated images no longer exist, processing of the first processing state in accordance with the gesture input, wherein the first processing state is a state in which image advance processing for changing over displayed images in order to view images by gesture input is executed, and wherein the second processing state is a state in which processing for allocating images, in order to subsequently print grouped images collectively, by gesture input is executed.