tweaks and fixes for the picture thumbnail layout