Attaching shelves to frame