Implemented a similar javascript effect as seen on flickr