Sliding menu bug fix