added support for slide and slidefade animations