Limit top and bottom modifiers to one layer deep. Fixes #2. Thanks, @nenadjelovac.