tweaking slideup/down code