Add support for slim and a spec test to match

Resolves issue #218.