fix bugs of imgbrowser's layout