Added init function to mdslides
Fixed bg path bug