Sliding effect now happens from window borders