Fixed Null Exception in slider