I want to show some images each of which are 20x20 px.
these images are shown in some rows and columns. total rows and column numbers may be from 1 to 10. these may be like this
or

user will fix what size of matrix he want to see.
Now i want that when these images (tennis balls) will be shown, it will seem that they are dropping from the top at different velocities. after dropping on the baseline, they will bounce and return to their desired position and form the matrix.
how can i do this? please give me some suggestion.


