modified sliding menu code