fix slice attribute functions