No, sleeping during the Ekadashi fast is not allowed. Doing so can be bad.