Change jQuery plugin

Hello.
I need very urgent help.
I’m using this plugin

http://www.htmldrive.net/items/show/639/a-Brilliant-Mask-Transition-Slideshow-With-jQuery

As you may see, the image is divided in cubes, but I need to divide that in random sizes.
How can I do that, is that possible to calculate?