change regex for slides