Updated sic_gallery function to include anchors and lb