Dynamically created sidebars

Created function and loop to create sidebars dynamically from an array