i have some code that tries to list images based on their height. the weird thing is that the same code kinda works when i try with 2 images but doesn't work when i try with 3 or moresite: http://bit.ly/JV5I0Zif you click on a menu button, the images should list themselves one below the other filling a width as wide as that black line thingy. if you click the 1st button that creates 2 thumbnails they work but the other buttons dont do nothingcode: http://jsfiddle.net/5qt3s/i have tried to remove all irrelevant stuff to keep it as simple as possiblewhat could i be doing wrong? thanks