I don't know if you've got an answer on this yet but when i first got my basilisk she was doing the same thing. I asked around and was told it was cause she wanted to get higher in the terrarium and it was probably too small. It has since grown and she doesn't do it anymore. In your situation it kind of seems strange since it is 18 inches in height.
Sent from my SM-G925W8 using Tapatalk