add expanding nav tabs to gallery