cleaning carousel code for adaptation to flickr