fixing multi-image problem in sidebars