You need to finish watching the locked door, then go back and encounter four slimes together. After that, leave this area and go to the place with three doors, which is where you unlock the coded door. Continue to the right, but your character is blocking the rightmost passage.