Fix for slides with numbers in IDs. Issue #569. Thanks @sjozsef.