Two menus for a galley: how to

Two menus for a galley: how to

I need to write a gallery with two menus: one above, and another one below of the gallery. The menu items of both menus should not be linked between each other, i.e. they filter the gallery according to different characteristics. I managed to make the below menu work (the menu items are pictures as well), but the above one refuses to work (it is composed of text links). How should I connect them and make things work?

I`m using simple code like in a Galleria plagin for my gallery.