Photo Gallery at

Hello people. I have a request from a client to build a photo gallery that does the same kind of transition from picture to picture than the one seen at

Basically, the white background adjust to the size of the selected picture. Any help on the AS code on how to create this effect would be highly appreciated.