removed 'opposite' option, fixed margin bug on window resize