fixed a bug in create new slide