update sidebar and image border