fixes to slidemenu directive