Magnetic imaging of NdBa2Cu3Oy thin-film patterns with slots