[effects/slide] Const-ify variables
Summary: It improves a little bit readability and comprehensibility of the code.
Reviewers: KWin, mart
Reviewed By: KWin, mart
Subscribers: kwin
Tags: KWin
Differential Revision: https://phabricator.kde.org/D13116