dynamic array for sidbar