Added null by default to slide object and removed incorrect branching on
text