Re-layout photos when browser window resizes