Limit elements to containers