Fix some errors in slides panel when select a template or a smartcard