add support for a url param to limit the maximum number of frames per layer